package com.tsd.jxc.stock.entity;

import com.tsd.core.utils.HlpUtils;
import io.swagger.annotations.ApiModel;

import java.io.Serializable;
import java.util.List;

/**
 * 仓库信息扩展
 *
 * @author Hillpool
 * @date 2022/07/29 15:06:33
 */
@ApiModel(description = "仓库信息扩展")
public class JxcStockWarehouseExt extends JxcStockWarehouse implements Serializable {

    public final static Double DEFAULT_USED_RATIO = 0.00d;
    /**
     * 是-仓库
     */
    public final static Integer TRUE_STOCK_WARE_HOUSE = 1;
    /**
     * 否-仓库
     */
    public final static Integer FALSE_STOCK_WARE_HOUSE = 0;

    private Integer is_stock_ware_house;

    private String parent_name;

    private String warehouse_sid;

    private String level;

    private String type_name;

    private List<JxcStockWarehouseExt> children;

    private Integer stock_qty;

    private List<String> sid_list;

    public Integer getIs_stock_ware_house() {
        if (HlpUtils.isEmpty(is_stock_ware_house)) {
            return TRUE_STOCK_WARE_HOUSE;
        }
        return is_stock_ware_house;
    }

    public void setIs_stock_ware_house(Integer is_stock_ware_house) {
        this.is_stock_ware_house = is_stock_ware_house;
    }

    public String getParent_name() {
        return parent_name;
    }

    public void setParent_name(String parent_name) {
        this.parent_name = parent_name;
    }

    public String getWarehouse_sid() {
        return warehouse_sid;
    }

    public void setWarehouse_sid(String warehouse_sid) {
        this.warehouse_sid = warehouse_sid;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }


    public String getType_name() {
        return type_name;
    }

    public void setType_name(String type_name) {
        this.type_name = type_name;
    }

    public List<JxcStockWarehouseExt> getChildren() {
        return children;
    }

    public void setChildren(List<JxcStockWarehouseExt> children) {
        this.children = children;
    }

    public Integer getStock_qty() {
        return stock_qty;
    }

    public void setStock_qty(Integer stock_qty) {
        this.stock_qty = stock_qty;
    }

    public List<String> getSid_list() {
        return sid_list;
    }

    public void setSid_list(List<String> sid_list) {
        this.sid_list = sid_list;
    }
}